package com.dwj.auto.comment.service.impl;

import com.dwj.auto.comment.common.response.PageResponse;
import com.dwj.auto.comment.config.mybatis.plus.CommonServiceImpl;
import com.dwj.auto.comment.dao.entity.UserRole;
import com.dwj.auto.comment.dao.mapper.UserRoleMapper;
import com.dwj.auto.comment.model.req.UserRoleSearchCriteria;
import com.dwj.auto.comment.model.vo.UserRoleVo;
import com.dwj.auto.comment.service.IUserRoleService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dwjian
 * @since 2020-01-26
 */
@Service
public class UserRoleServiceImpl extends CommonServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

    @Override
    public PageResponse<UserRoleVo> searchList(UserRoleSearchCriteria criteria) {
        return PageResponse.success(baseMapper.searchList(criteria.buildPage(), criteria));
    }
}
